package com.application.validate;

import com.jfinal.core.Controller;

public class DictValidator extends ApiValidator {
    @Override
    protected void validate(Controller c) {
        String key = getActionKey();
        if ("/admin/dict/save".equalsIgnoreCase(key)) {

            validateRequired("type", "msg", "必填项为空");
            validateInteger("ord", "msg", "必填项为空");
            validateRequired("name", "msg", "必填项为空");
            validateRequired("code", "msg", "必填项为空");
            validateRequired("value", "msg", "必填项为空");
             /*if(ord == null){
                addError("msg", "发送的用户不存在或已注销");
                return;
            }*/

        }

    }


}
